package com.wh.wisdomsite.xbox.ba.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * 角色实体
 * @Package: com.wh.wisdomsite.xbox.us.entity
 * @author: 丁奕
 * @date: 2018-08-03 10:54
 * @Copyright 公司版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 * @version V1.0
 **/
@TableName("ba_role")
public class Role extends Model<Role> {

    /**
     * 角色ID
     */
    @TableId(type = IdType.UUID)
    private String roId;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 数据权限ID，入库,字典配置
     */
    @TableField("dataScope")
    private String dataScope;

    /**
     * 数据权限，公共字典实体
     */
    @TableField( exist = false)
    private CommonDict dataScopeCD;

    /**
     * 是否系统数据
     * 1:是(只有超管能修改)
     * 2:否(只要有角色修改权限的人员就能修改)
     */
    @TableField("isSys")
    private String isSys;

    /**
     * 是否可用
     * 1: 是
     * 2: 否
     */
    @TableField("useable")
    private String useable;

    /**
     * 创建者
     */
    @TableField("createBy")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField("createDate")
    private Date createDate;

    /**
     * 更新者
     */
    @TableField("updateBy")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField("updateDate")
    private Date updateDate;

    /**
     * 备注信息
     */
    @TableField("remark")
    private String remark;

    /**
     * 数据状态
     * 1:正常 2:已删除
     */
    @TableField("dataState")
    private String dataState;

    public String getRoId() {
        return roId;
    }

    public void setRoId(String roId) {
        this.roId = roId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDataScope() {
        return dataScope;
    }

    public void setDataScope(String dataScope) {
        this.dataScope = dataScope;
    }

    public CommonDict getDataScopeCD() {
        return dataScopeCD;
    }

    public void setDataScopeCD(CommonDict dataScopeCD) {
        this.dataScopeCD = dataScopeCD;
    }

    public String getIsSys() {
        return isSys;
    }

    public void setIsSys(String isSys) {
        this.isSys = isSys;
    }

    public String getUseable() {
        return useable;
    }

    public void setUseable(String useable) {
        this.useable = useable;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDataState() {
        return dataState;
    }

    public void setDataState(String dataState) {
        this.dataState = dataState;
    }

    @Override
    protected Serializable pkVal() {
        return this.roId;
    }
}
